package cn.wynu.ioc.annotation;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class Home {

    @Value("桌子")
    String desk;

    @Value("凳子")
    String stool;

    @Override
    public String toString() {
        return "Home{" +
                "desk='" + desk + '\'' +
                ", stool='" + stool + '\'' +
                '}';
    }
}
